package a.j;

import java.awt.*;

public class me
  implements qb
{
  private Shape a;
  private Color b;
  private Color c;
  private Stroke d;
  private Paint e;
  private Rectangle f;
  public static int g;
  
  public me(Shape paramShape, Color paramColor)
  {
    this(paramShape, paramColor, null);
  }
  
  public me(Shape paramShape, Color paramColor1, Color paramColor2)
  {
    this(paramShape, paramColor1, null, paramColor2, null);
  }
  
  public me(Shape paramShape, Color paramColor1, Paint paramPaint, Color paramColor2, Stroke paramStroke)
  {
    a(paramShape);
    a(paramColor1);
    a(paramPaint);
    b(paramColor2);
    a(paramStroke);
  }
  
  public Rectangle getBounds()
  {
    return this.f;
  }
  
  public void paint(Graphics2D paramGraphics2D)
  {
    boolean bool = ld.E;
    Paint localPaint = paramGraphics2D.getPaint();
    Color localColor = paramGraphics2D.getColor();
    Stroke localStroke = paramGraphics2D.getStroke();
    try
    {
      if (!bool)
      {
        if (this.b != null)
        {
          if (!bool) {
            if (this.e != localPaint) {
              paramGraphics2D.setPaint(this.e);
            }
          }
          if (this.b != localColor) {
            paramGraphics2D.setColor(this.b);
          }
          paramGraphics2D.fill(this.a);
        }
        if (bool) {}
      }
      else
      {
        if (this.c == null) {
          break label135;
        }
        if (bool) {
          break label129;
        }
        paramGraphics2D.setColor(this.c);
      }
      if ((this.d != localStroke) && (this.d != null)) {
        paramGraphics2D.setStroke(this.d);
      }
      label129:
      paramGraphics2D.draw(this.a);
    }
    finally
    {
      label135:
      paramGraphics2D.setPaint(localPaint);
      paramGraphics2D.setColor(localColor);
      paramGraphics2D.setStroke(localStroke);
    }
  }
  
  public Shape a()
  {
    return this.a;
  }
  
  public void a(Shape paramShape)
  {
    this.f = paramShape.getBounds();
    this.a = paramShape;
    b();
  }
  
  public void b()
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2)
    {
      if ((this.d instanceof BasicStroke))
      {
        int i = (int)Math.ceil(((BasicStroke)this.d).getLineWidth());
        this.f.x -= i;
        this.f.y -= i;
        this.f.width += 2 * i;
        if (bool2) {
          break label103;
        }
        this.f.height += 2 * i;
        if (!bool1) {
          return;
        }
      }
      label103:
      if (bool2) {}
    }
    else if (this.d != null)
    {
      if (bool2) {
        break label153;
      }
      this.f = this.d.createStrokedShape(this.a).getBounds();
      if (!bool1) {
        return;
      }
    }
    label153:
    this.f = this.a.getBounds();
  }
  
  public Color c()
  {
    return this.b;
  }
  
  public void a(Color paramColor)
  {
    this.b = paramColor;
  }
  
  public Color d()
  {
    return this.c;
  }
  
  public void b(Color paramColor)
  {
    this.c = paramColor;
  }
  
  public Stroke e()
  {
    return this.d;
  }
  
  public void a(Stroke paramStroke)
  {
    Stroke localStroke = this.d;
    this.d = paramStroke;
    b();
  }
  
  public Paint f()
  {
    return this.e;
  }
  
  public void a(Paint paramPaint)
  {
    this.e = paramPaint;
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.me

 * JD-Core Version:    0.7.0.1

 */